﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QLCHBANGIAY.DATA;
using System.Data;

namespace QLCHBANGIAY.BUSINESS
{
   public class CustommerServices
    {
        private static custommerController db = new custommerController();
        #region[tbCUSTOMERS_GetById]
        public static List<Custommer> tbCUSTOMERS_GetById(string Id)
        {
            return db.tbCUSTOMERS_GetById(Id);
        }
        #endregion
        #region[Custommer_Get_Customer_Order]
        public static DataSet Get_Customer_Order_By_lang(string Lang)
        {
            return db.Get_Customer_Order_By_lang(Lang);
        }
        #endregion
        #region[Custommer_GetByTop]
        public static List<Custommer> Custommer_GetByTop(string Top, string Where, string Order)
        {
            return db.tbCUSTOMERS_GetByTop(Top, Where, Order);
        }
        #endregion
        #region[Custommer_GetByAll]
        public static List<Custommer> Custommer_GetByAll()
        {
            return db.tbCUSTOMERS_GetByAll();
        }
        #endregion
        #region[Custommer_Paging]
        public static List<Custommer> tbCUSTOMERS_Paging(string CurentPage, string PageSize)
        {
            return db.tbCUSTOMERS_Paging(CurentPage, PageSize);
        }
        #endregion
        #region[tbCUSTOMERS_Insert]
        public static bool tbCUSTOMERS_Insert(Custommer data)
        {
            return db.tbCUSTOMERS_Insert(data);
        }
        #endregion
        #region[tbCUSTOMERS_Update]
        public static bool tbCUSTOMERS_Update(Custommer data)
        {
            return db.tbCUSTOMERS_Update(data);
        }
        #endregion
        #region[tbCUSTOMERS_Delete]
        public static bool tbCUSTOMERS_Delete(string Id)
        {
            return db.tbCUSTOMERS_Delete(Id);
        }
        #endregion
    }
}
